package com.sdjzu.wanfuying.androiddesign.mvvm.student;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.sdjzu.wanfuying.androiddesign.BR;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.databinding.BindingAdapter;

public class Student extends BaseObservable {
    private String name;
    private String id;
    private String avatarUrl;

    public Student(String id, String name) {
        this.name = name;
        this.id = id;
    }

    @Bindable
    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
        notifyPropertyChanged(BR.avatarUrl);
    }

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
        notifyPropertyChanged(BR.id);
    }
}
